package com.geovis.emergency.spd.biz.pc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.geovis.emergency.spd.entity.basic.entity.PcPunchRecord;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 应急预案指挥模块-打卡表记录表 Mapper 接口
 * </p>
 *
 * @author lmolong
 * @since 2022-06-21
 */
public interface PcPunchRecordMapper extends BaseMapper<PcPunchRecord> {

    /**
     * 根据打卡id和打卡类型查询最新的一条打卡记录信息
     * @param punchId 打卡id
     * @param type 打卡类型
     * @return
     */
    PcPunchRecord selectByPunchIdAndTime(@Param("punchId") String punchId, @Param("type") String type);
}
